﻿using Layans.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace Api.Web.Controllers
{
    public class Default1Controller : ApiController
    {
        public IEnumerable<User> Get()
        {
            var user = new User
            {
                Name = name,
                City = city,

            };
            return users;
        }
        
        public User Get(int id)
        {
            var user = new User
            {
                Name = name,
                City = city,
            };
            return Users;
        }
            public string name { get; set; }

            public string city { get; set; }

            public IEnumerable<User> users { get; set; }

            public User Users { get; set; }
    }
}
